package jdbc.day1.demo2_操作;

public class Stu {
    int id;
    int c_id;
    String sname;
    Double score;

    public Stu() {

    }

    public Stu(int id, String sname) {
        this.id = id;
        this.sname = sname;
    }

    public Stu(int id, int c_id, String sname, Double score) {
        this.id = id;
        this.c_id = c_id;
        this.sname = sname;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Stu{" +
                "id=" + id +
                ", c_id=" + c_id +
                ", sname='" + sname + '\'' +
                ", score=" + score +
                '}';
    }
}
